package com.lanou3g.code0404.morning;

/**
 * Created by dllo on 18/4/4.
 */
public class Main {
    public static void main(String[] args) {
        Table table = new Table();
        table.color = "红色";
        table.legCount = 3;
        table.show();

        Foo foo = new Foo();
        int a = 3;
        foo.fun(a,table);
        System.out.println("----->");
        System.out.println(a);
        table.show();

        System.out.println("----->");
        foo.fun2(table);
        table.show();

//        String s = new String();
//        s = "Hello";
        String s1 = "Hello";  // 不需要真的写出new，直接把双引号中的内容赋值过去，就相当于new; String太常用
        foo.fun3(s1);
        System.out.println(s1);
    }
}
